<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="shortcut icon" href="../image/logo1.png">
    <script src="../js/work6.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        div {
            width: 450px;
            margin-left: 15px;
        }

        ul {
            list-style: none;
        }

        button {
            width: 55px;
            height: 35px;
        }
    </style>
</head>

<body>
    <div>
        <button onclick="fn()">反选</button>
        <button onclick="alls()">全选</button>
        <button onclick="no()">全不选</button>
        <ul>
            <li><input type="checkbox" class="hobby"></li>
            <li><input type="checkbox" checked class="hobby"></li>
            <li><input type="checkbox" checked class="hobby"></li>
            <li><input type="checkbox" class="hobby"></li>
            <li><input type="checkbox" class="hobby"></li>
        </ul>
    </div>
</body>

</html>